package top.yxqz.springmvc.annotation.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: 余小小
 * @date: 2023/5/18
 * @description：
 */
@Controller
@RequestMapping("/error")
public class ErrorController {

    @GetMapping("/404")
    public String eror404() {
        System.out.println(1/0);
        return "index";
    }
}
